/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.ical.event;

import cn.ekuma.epos.businesslogic.OrderUtil;
import cn.ekuma.epos.ical.AbstractERPEvent;
import cn.ekuma.epos.order.model.OrderLineVTableModel;
import com.openbravo.bean.erp.viewbean.OrderLine_V;
import java.util.Calendar;

/**
 *
 * @author Administrator
 */
public class OrderLineEvent extends AbstractERPEvent{

    public OrderLineEvent(OrderLine_V line) {
        title = line.getDefineType()+"<"+line.getMultiply()+">";
        description = OrderLineVTableModel.getOrderLineInfoDescription(line);
        datetime=Calendar.getInstance();
        datetime.setTime(line.getDate());
    }

    @Override
    public int compareTo(Object o) {
        return -1;
    }

}
